package com.graduation.project.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Unit {

  /**
   * 主键
   */
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;

  /**
   * 单位名称
   */
  @TableField(value = "unit_name")
  private String unitName;

  /**
   * 父级单位Id
   */
  @TableField(value = "parent_unit_id")
  private Long parentUnitId;

  /**
   * 单位状态
   */
  @TableField(value = "unit_status")
  private Integer unitStatus;

  /**
   * 单位排序
   */
  @TableField(value = "unit_sort")
  private Integer unitSort;

  /**
   * 删除标记
   */
  @TableLogic
  @TableField(value = "delete_flag")
  private Integer deleteFlag;

  /**
   * 创建时间
   */
  @TableField(value = "create_time")
  private Date createTime;

  /**
   * 修改时间
   */
  @TableField(value = "update_time")
  private Date updateTime;

  /**
   * 单位类型
   */
  @TableField(value = "unit_type")
  private Integer unitType;
}
